package com.example.adms.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.adms.common.excel.UserExcelData;
import com.example.adms.user.dto.ChangeParams;
import com.example.adms.user.dto.LoginParams;
import com.example.adms.user.dto.PageParams;
import com.example.adms.user.entity.User;
import com.example.adms.vo.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserService extends IService<User> {
    Result login(LoginParams loginParams);

    Result getUserById(Integer id);

    Result getVcode();

    Result getByUserId(String userId);

    Result logout(String token);

    Result addOrUpdateUser(User user);

    Result imageUpload(MultipartFile file);

    Result delUserById(Integer id);

    Result getUserList(PageParams pageParams);

    Result sendMail(String to);

    Result changePwd(ChangeParams changeParams);

    Result readUserFromExcel(MultipartFile file);

    void addUserByExcel(List<UserExcelData> list);

    Result getDepartLeader();
}
